package Logic.EventSample.Fight;

import FrameWork.Event.Trigger;
import FrameWork.Model.Player;
import org.springframework.stereotype.Component;

@Component
public class KillMonsterTrigger extends Trigger<KillMonsterHandler> {

    public void fire(Player player){
        for (KillMonsterHandler handler:getEventHandlers()){
            handler.onKillMonster(player);
        }
    }

}
